package cn.shujuhai.qtadmin.platform.pluging.search;

import lombok.Data;

/**
 * Field
 *
 * @author dch798
 * @date 2021/10/05 16:52
 **/
@Data
public class Field {

    private String name;
    private Object value;
    private QueryMethod queryMethod;

    public Field(String name, Object value) {
        this.name = name;
        this.value = value;
        this.queryMethod = QueryMethod.EQ;
    }

    public Field(String name, Object value, QueryMethod queryMethod) {
        this.name = name;
        this.value = value;
        this.queryMethod = queryMethod;
    }
}
